require.config({
    paths: {
        'jquery': 'https://cdn.bootcdn.net/ajax/libs/jquery/1.12.4/jquery.min',
        'lazyload': 'https://cdn.bootcdn.net/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min',
        'pagin': 'http://localhost/juanpi/src/script/jquery.pagination',
        'cook': 'https://cdn.bootcdn.net/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min'
    },
    shim: {
        'lazyload': {
            deps: ['jquery']
        },
        'pagin': {
            deps: ['jquery']
        },
        'cook': {
            deps: ['jquery']
        }

    }
});

require(['jquery', 'lazyload', 'pagin', 'cook'], function() {
    let mod = $('#modload').attr('modpage');
    if (mod) {
        require([mod], function(a) {
            new a.jp().init()
        })
    }

})